import request from '@/utils/request';

export function getCodeAPI(mobile: string) {
  return request({
    url: '/v1_0/sms/codes/' + mobile,
  });
}

export type loginType = { mobile: string; code: string };
export function loginAPI(data: loginType) {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data,
  });
}
